﻿using System;
using Tanis.Controls;
using Tanis.RouteService;

namespace Tanis.DataModels
{
	public class RouteDetails
	{
		public BusRideSegment Segment{ get; private set; }

		public RouteDetails(BusRideSegment segment)
		{
			Segment = segment;
		}

		public string StartTime
		{
			get { return DesignHelper.FormatTime(Segment.StartTime); }
		}

		public string EndTime
		{
			get { return DesignHelper.FormatTime(Segment.EndTime); }
		}

		public string StartDescription
		{
			get { return Segment.StartStop.FullName; } //todo:
		}

		public string EndDescription
		{
			get { return Segment.EndStop.FullName; } //todo:
		}

		public string Direction
		{
			get { return Segment.DirectionName; }
		}

		public string Transport
		{
			get { return /*DesignHelper.GetTransportDescription(Segment) + " " +*/ Segment.ScheduleName; }
		}
		
		public string TransportColor
		{
			get { return DesignHelper.GetColor(Segment); }
		}

		public string TransportImage
		{
            get { return DesignHelper.GetIcon(Segment); }
		}
	}
}
